package com.gnerv.pabu.basic.core.dto;

import com.gnerv.pabu.basic.core.entity.DictItem;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.beans.BeanUtils;

/**
 * 基础平台-字典项 添加 DTO
 *
 * @author zhang
 * @date 2019/12/2
 **/
@Data
@NoArgsConstructor
public class DictItemSaveDTO {

    private String ukId;
    private String dictId;
    private String code;
    private String name;
    private String value;

    private Integer status;
    private Integer sort;

    public DictItem convert(){
        DictItem dictItem = new DictItem();
        BeanUtils.copyProperties(this, dictItem);
        return dictItem;
    }
}
